﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using NGeo.Yahoo.PlaceFinder;
using Should;

namespace NGeo
{
    [TestClass]
    public class ExtensionMethodTests
    {
        [TestMethod]
        public void ExtensionMethod_GetEnumMemberAttribute_ShouldReturnNull_WhenEnumHasNoMemberAttribute()
        {
            var attribute = QualityCategory.Area.GetEnumMemberAttribute();
            attribute.ShouldBeNull();
        }

        [TestMethod]
        public void ExtensionMethod_ApplyDefaultValues_ShouldApplyDefaultValueAttributes()
        {
            var request = new Request();
            request.ApplyDefaultValues();
            request.Locale.ShouldEqual("en-US");
        }

    }
}
